//
//  HMOrderCenterTool.m
//  HMSupplier
//
//  Created by haohao on 2017/7/25.
//  Copyright © 2017年 haohao. All rights reserved.
//

#import "HMOrderCenterTool.h"
#import "TodayOrder.h"
#import "OrderCenterOrderDetail.h"
@implementation HMOrderCenterTool
+ (void)getOrerDetailWithid:(TodayOrder *)TodayOrder success:(orerDetailSuccess)success failure:(orerDetailFailure)failure {
    [HttpBaseTool requestWithBaseUrl:kBaseUrl path:kTdetail method:GET_REQUEST isJSON:YES params:@{@"uid":[MGAccountTool getUid], @"id":TodayOrder.id} ssuccess:^(id responseObj) {
        NSArray *dataArray = [OrderCenterOrderDetail mj_objectArrayWithKeyValuesArray:responseObj[@"data"]];
        success(dataArray);
    } failure:^(NSError *error) {
        
    }];
}

@end
